import requests

header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
}
url = 'http://www.pxc.jx.cn/'
response = requests.get(url=url, headers=header)
response.encoding = 'utf-8'
text = response.text
file = open("D:\\pxxy.html", 'w',encoding='utf-8')
file.write(text)
